﻿CREATE TRIGGER LoanSocialResearch_Tracking_Delete
ON [dbo].[LoanSocialResearch] 
AFTER delete
AS 
BEGIN
	UPDATE Sync.LoanSocialResearch_Tracking 
	SET LastUpdatedDate  = getdate(),
		IsDeleted = 1
	FROM Sync.LoanSocialResearch_Tracking s JOIN DELETED i
    ON s.LoanSocialResearchID = i.LoanSocialResearchID
END














